import request from '@/utils/request'

// 查询居民用户人脸识别登记列表
export function listInhabitant(query) {
  return request({
    url: '/inhabitant/inhabitant/list',
    method: 'get',
    params: query
  })
}

// 查询居民用户人脸识别登记详细
export function getInhabitant(id) {
  return request({
    url: '/inhabitant/inhabitant/' + id,
    method: 'get'
  })
}

// 新增居民用户人脸识别登记
export function addInhabitant(data) {
  return request({
    url: '/inhabitant/inhabitant',
    method: 'post',
    data: data
  })
}

// 修改居民用户人脸识别登记
export function updateInhabitant(data) {
  return request({
    url: '/inhabitant/inhabitant',
    method: 'put',
    data: data
  })
}

// 删除居民用户人脸识别登记
export function delInhabitant(id) {
  return request({
    url: '/inhabitant/inhabitant/' + id,
    method: 'delete'
  })
}
